package com.tjp.eight.ui.fragment.detail;

import com.tjp.eight.ResultModel;
import com.tjp.eight.ui.fragment.comment.ZanCommentResultModel;
import com.tjp.eight.ui.fragment.sub.SubResultModel;

import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by Administrator on 2017/3/7.
 */

public interface DetailsService {
    @Headers({"Content-Type:application/json", "Accept:application/json"})
    @POST("first/content")
    Observable<DetailModel> loadData(@Body RequestBody requestBody);

    @Headers({"Content-Type:application/json", "Accept:application/json"})
    @POST("comment/submit")
    Observable<ResultModel> sendComment(@Body RequestBody requestBody);

    @Headers({"Content-Type:application/json", "Accept:application/json"})
    @POST("comment/praise")
    Observable<ZanCommentResultModel> zanCDetail(@Body RequestBody rq);

    @Headers({"Content-Type:application/json", "Accept:application/json"})
    @POST("find/subscibe")
    Observable<SubResultModel> sub(@Body RequestBody requestBody);

    @Headers({"Content-Type:application/json", "Accept:application/json"})
    @POST("first/getshareinfo")
    Observable<ShareModel> getShareData(@Body RequestBody requestBody);

    @Headers({"Content-Type:application/json", "Accept:application/json"})
    @POST("user/collect")
    Observable<CollectionRModel> collection(@Body RequestBody req);

    @Headers({"Content-Type:application/json", "Accept:application/json"})
    @POST("first/praiseOrUnpraise")
    Observable<ResultModel> azan(@Body RequestBody req);

    @Headers({"Content-Type:application/json", "Accept:application/json"})
    @POST("first/praiseOrUnpraise")
    Observable<ResultModel> weak(@Body RequestBody req);

    @Headers({"Content-Type:application/json", "Accept:application/json"})
    @POST("first/sharefm")
    Observable<ResultModel> sharesuccess(@Body RequestBody req);
}
